/*******************************************************************************
 * @note      Copyright (C) 2018 Shanghai Panchip Microelectronics Co., Ltd.
 *            All rights reserved.
 *
 * @file      lwheap_port.c
 * @brief     
 *
 * @history   V0.01, 2018-11-07, xiaoguolin, first implementation.
*******************************************************************************/
#include "lwheap_port.h"

static uint32_t ucHeap[64*1024/4];

LwHeap_t __heap;
static bool __isHeapInited = false;

void lwheap_initial()
{
    if(__isHeapInited == false){
        LwHeap_Init(&__heap);
        LwHeap_AddMem(&__heap, ucHeap, sizeof(ucHeap));

    }
}

void LwHeap_Lock(LwHeap_t *heap)
{
    (void)heap;
    //vTaskSuspendAll();
}

void LwHeap_Unlock(LwHeap_t *heap)
{
    (void)heap;
    //(void)xTaskResumeAll();
}

